package com.yuandian.business.monitor.controller;

import com.yuandian.bpm.common.core.util.R;
import com.yuandian.business.monitor.service.ISystemBusiVisitDistribteService;
import com.yuandian.api.business_monitor.po.BusiVisitDistribteParams;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 访问量分布详情
 *
 * @author zhoutian
 * @date 2020/9/29 14:43
 */
@Api(value = "indexDetail", tags = "首页详情接口")
@RestController
@RequestMapping("/home/busiVisitDistribte")
public class SystemBusiVisitDistribteController {

    @Autowired
	ISystemBusiVisitDistribteService systemBusiVisitDistribteService;

    /**
     * 访问量分布详情查询和地图数据查询
     *
     * @param params
     * @return
     */
	@ApiOperation(value = "访问量分布详情查询和地图数据查询", notes = "访问量分布详情查询和地图数据查询")
    @GetMapping("/getVisitDistribteDetail")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "currentTime", 	value = "当前时间",  			  paramType = "query",  required = true,   dataType = "String"),
			@ApiImplicitParam(name = "systemId", 			value = "系统id",  	  paramType = "query",  required = true,   dataType = "String")
	})
    public R getVisitDistribteDetail(@Validated BusiVisitDistribteParams params) {
        return R.ok(systemBusiVisitDistribteService.getVisitDistribteDetail(params));
    }


}
